package com.pro.staffmanage.mapper;

import com.pro.staffmanage.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Set;

@Repository
@Mapper
public interface RoleMapper {

    Set<Role> queryAllRole();

    Role queryRoleById(Integer id);

    Integer addRole(Role user);

    Integer updateRole(Role user);

    Integer deleteRole(Integer id);
    
}
